package com.hongye.consult.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hongye.common.core.annotation.Excel;
import com.hongye.common.core.web.domain.BaseEntity;

/**
 * 好有关系对象 tx_user_relation
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TxUserRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    private Long userId;

    /** $column.columnComment */
    private Long friendId;

    /**
     * 0 在线  1 离线
     */
    private Long relationStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setFriendId(Long friendId) 
    {
        this.friendId = friendId;
    }

    public Long getFriendId() 
    {
        return friendId;
    }
    public void setRelationStatus(Long relationStatus)
    {
        this.relationStatus = relationStatus;
    }

    public Long getRelationStatus()
    {
        return relationStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("friendId", getFriendId())
            .append("relationStatus", getRelationStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
